﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AncientLand.Service.Entity;

namespace AncientLand.Service.IBiz
{
    public interface INewsBiz
    {
        IEnumerable<News> GetAll();
        News GetById(int id);
        void Create(News news);
        void Update(News news);
        void Delete(int id);
        void Save();
        IEnumerable<News> GetNewsByPages(out int totalRecord,int? pageIndex = 1, int? pageSize = 10, string orderFiled="ID");
        Boolean SetReadTimes(int? id = 1, int? readTimes = 1);
    }
}
